<template>
  <div>
    <div class="bg-image">
      <div class="text_center">
        <div>
          <a-image
              width="120"
              src="http://www.codeman.ink/img/recommendMusic.dadb06d2.png"
              :showLoader="true"
          />
        </div>
        <div>
          <span
              style="border: 1px solid orange;color:orange;padding: 10px; border-radius: 20px;margin:10px;display: inline-block;cursor: pointer">
            <icon-heart/>
            全部播放
          </span>
          <div>
            <p style="margin:10px;color: #dddddd">根据你的音乐口味生成，每天6：00更新</p>
          </div>
        </div>
      </div>
    </div>
    <ttable :dataList="dataList"/>
  </div>
</template>

<script setup>
import {getDailyRecommendationApi} from "~/commonApi/api"
import ttable from "~/pages/detail/conponents/table.vue"
import {ref} from "vue";

const dataList = ref([])
const getdata = async () => {
  const res = await getDailyRecommendationApi()
  dataList.value = res.data.dailySongs
}
getdata(0)
</script>

<style scoped lang="scss">
.bg-image {
  height: 10rem;
  position: relative;
  overflow: hidden;
  border-radius: 10px;

  .container_img {
    width: 80%;

    position: absolute;
    top: 0;
    z-index: -1;
    -webkit-filter: blur(5px);
    filter: blur(15px);
    transform: scale(3);

    .container_img {
      width: 100%;
      height: 120%;
    }
  }
}

.text_center {
  position: absolute;

  top: 0;
  padding: 15px 20px;
  display: flex;

  .tag_a {
    margin: 10px;
  }
}
</style>